<?php
echo $this->Form->create('User');
echo $this->Form->input('newpassword', array('label'=>'Nowe hasło', 'type'=>'password'));
echo $this->Form->input('cnewpassword', array('label'=>'Potwierdzenie nowego hasła', 'type'=>'password'));
if (!$isAdmin || ($currentUser['id']==$userId))  {
	echo $this->Form->input('oldpassword', array('label'=>'Aktualne hasło', 'type'=>'password')); 
}
echo $this->Form->end('Zapisz');
?>